
const RouteView = () => import('@/layout/RouteView');
// 异步路由组件加载
const AsyncComponent = __name__ => () => import(`@/pages/${__name__}`);

// 菜单路由
const claimDemage = [
  {
    path: '/usedPartsDestructionFactory',
    //path: '/claim',
    meta: { title: '旧件销毁管理', icon: 'el-icon-s-flag' },
    component: RouteView,
    children: [
      {
        path: '/usedPartsDestructionFactory/ToBeDestroyed',
        meta: { title: '经销商待销毁旧件查询' },
        component: RouteView,
        children: [
          {
            path: '/usedPartsDestructionFactory/ToBeDestroyed/index',
            meta: { title: '经销商待销毁旧件查询', keepAlive: true },
            component: AsyncComponent('usedPartsDestructionFactory/ToBeDestroyed/index')
          },
          {
            path: '/usedPartsDestructionFactory/UsedPartsDestructionExamine/index',
            meta: { title: '旧件销毁审核', keepAlive: true },
            component: AsyncComponent('usedPartsDestructionFactory/UsedPartsDestructionExamine/index')
          },
          {
            path: '/usedPartsDestructionFactory/DestructionResultsExamine/index',
            meta: { title: '旧件销毁结果审核', keepAlive: true },
            component: AsyncComponent('usedPartsDestructionFactory/DestructionResultsExamine/index')
          },
          // {
          //   path: '/usedPartsDestructionFactory/DestructionResultsExamine/index',
          //   meta: { title: '旧件交接记录审核', keepAlive: true },
          //   component: AsyncComponent('usedPartsDestructionFactory/DestructionResultsExamine/index')
          // },
          {
            path: '/usedPartsDestructionFactory/UsedPartsApplyQuery/index',
            meta: { title: '旧件销毁申请查询', keepAlive: true },
            component: AsyncComponent('usedPartsDestructionFactory/UsedPartsApplyQuery/index')
          },
          {
            path: '/usedPartsDestructionFactory/UsedResultsExamineQuery/index',
            meta: { title: '经销商待销毁旧件查询', keepAlive: true },
            component: AsyncComponent('usedPartsDestructionFactory/UsedResultsExamineQuery/index')
          },
          {
            path: '/usedPartsDestructionFactory/UsedPartsHandover/index',
            meta: { title: '旧件交接记录审核', keepAlive: true },
            component: AsyncComponent('usedPartsDestructionFactory/UsedPartsHandover/index')
          },
          {
            path: '/usedPartsDestructionFactory/UsedPartsHandoverQuery/index',
            meta: { title: '旧件交接记录查询', keepAlive: true },
            component: AsyncComponent('usedPartsDestructionFactory/UsedPartsHandoverQuery/index')
          },
        ]
      }
    ]
  }
];

export default claimDemage;
